/**
* @author:kellen
* @contact:xiekellen@hotmail.com
* @company:achivo-gz
* @created on:
* @modified on:
*/

package com.sasis.dao;

import java.util.List;

import com.sasis.dao.Dao;
import com.sasis.model.VipInfo;

public interface VipInfoDao extends Dao {

    /**
     * Retrieves all of the vipInfos
     */
    public List getVipInfos(VipInfo vipInfo);

    /**
     * Gets vipInfo's information based on primary key. An
     * ObjectRetrievalFailureException Runtime Exception is thrown if 
     * nothing is found.
     * 
     * @param id the vipInfo's id
     * @return vipInfo populated vipInfo object
     */
    public VipInfo getVipInfo(final Integer id);
    
    public VipInfo getVipInfoDwr(final String cardNum);

    /**
     * Saves a vipInfo's information
     * @param vipInfo the object to be saved
     */    
    public void saveVipInfo(VipInfo vipInfo);

    /**
     * Removes a vipInfo from the database by id
     * @param id the vipInfo's id
     */
    public void removeVipInfo(VipInfo vipInfo);
}

